package org.aplikator.client.shared.rpc;

import org.aplikator.client.shared.data.ClientContext;
import org.aplikator.client.shared.data.Record;
import org.aplikator.client.shared.descriptor.FunctionDTO;
import org.jboss.errai.common.client.api.annotations.Portable;

/**
 * Created with IntelliJ IDEA.
 * User: vlahoda
 * Date: 12.04.13
 * Time: 14:40
 * To change this template use File | Settings | File Templates.
 */
@Portable
public class ParameterWrapperRunFunction {
    private  FunctionDTO function;
    private  ClientContext clientContext;
    private  Record functionParameters;


    public ParameterWrapperRunFunction() {    	
    }
    
   /* public ParameterWrapperRunFunction(@MapsTo("function") FunctionDTO function, @MapsTo("clientContext") ClientContext clientContext, @MapsTo("functionParameters") Record functionParameters) {
        this.function = function;
        this.clientContext = clientContext;
        this.functionParameters =  functionParameters;
    }
     */

    public ParameterWrapperRunFunction(FunctionDTO function, ClientContext clientContext, Record functionParameters) {
        this.function = function;
        this.clientContext = clientContext;
        this.functionParameters =  functionParameters;
    }

    public FunctionDTO getFunction() {
        return function;
    }

    public void setFunction(FunctionDTO function) {
		this.function = function;
	}
    
    public ClientContext getClientContext() {
        return clientContext;
    }
    public void setClientContext(ClientContext clientContext) {
		this.clientContext = clientContext;
	}

    public Record getFunctionParameters() {
        return functionParameters;
    }
    
    public void setFunctionParameters(Record functionParameters) {
		this.functionParameters = functionParameters;
	}
}
